﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Proccess_ProccessInsertAccount : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string username = Request["username"];
            string email = Request["email"];
            string avatar = Request["avatar"];

            DBAccess.Object.UserAccount acc = new DBAccess.Object.UserAccount();
            acc.UserFacebook = email;
            acc.UserName = email;
            acc.Password = "";
            acc.Status = 1;
            acc.CreateDate = DateTime.Now;
            acc.Hashkey = "";
            
            bool rs = DBAccess.Business.UserAccountBusiness.InsertUserAccount(acc);
            if (rs)
            {
                Response.Write("insertsuccess");
            }
            else
            {
                Response.Write("errorinsert");
            }
            Response.End();
        }
        catch
        {

        }
    }
}